<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
 * Copyright (c) 2016 VUI(https://git.oschina.net/durcframework/vui) All rights reserved.
 */

;(function(){

<span id='VUI-DialogForm'>/**
</span> * DialogForm对话框,将Dialog和Form组合&lt;br&gt;
 * &lt;pre&gt;
win = new VUI.DialogForm({
	contentId:'win'
	,formId:'form'
	,title:'Dialog标题'
	,width:500
	,onOk:function() {
		alert('ok')
	}
});
 &lt;/pre&gt;
 * @class VUI.DialogForm
 * @extends VUI.Dialog
 */
VUI.Class('DialogForm',{
	// 默认属性
	OPTS:{
	}
<span id='global-method-constructor'>	/**
</span>	 * 构造函数
	 * @constructor
	 * @ignore
	 */
	,init:function(opts) {
		this._super(opts);
		this.form = new VUI.Form(opts);
	}
<span id='VUI-DialogForm-method-load'>	/**
</span>	 * 同Form.load()
	 * @see {VUI.Form.load}
	 */
	,load:function(data) {
		this.form.load(data);
	}
<span id='VUI-DialogForm-method-setData'>	/**
</span>	 * 同Form.setData()
	 * @see {VUI.Form.setData}
	 */
	,setData:function(data) {
		this.load(data);
	}
<span id='VUI-DialogForm-method-getData'>	/**
</span>	 * 同Form.getData()
	 * @see {VUI.Form.getData}
	 */
	,getData:function() {
		return this.form.getData();
	}
<span id='VUI-DialogForm-method-check'>	/**
</span>	 * 同Form.check()
	 * @see {VUI.Form.check}
	 */
	,check:function() {
		return this.form.check();
	}
<span id='VUI-DialogForm-method-validate'>	/**
</span>	 * 同Form.validate()
	 * @see {VUI.Form.validate}
	 */
	,validate:function() {
		return this.form.validate();
	}
<span id='VUI-DialogForm-method-submit'>	/**
</span>	 * 同Form.submit()
	 * @see {VUI.Form.submit}
	 */
	,submit:function(opts) {
		this.form.submit(opts);
	}
<span id='VUI-DialogForm-method-reset'>	/**
</span>	 * 同Form.reset()
	 * @see {VUI.Form.reset}
	 */
	,reset:function() {
		this.form.reset();
	}
<span id='VUI-DialogForm-method-getForm'>	/**
</span>	 * 返回VUI.Form实例对象
	 */
	,getForm:function() {
		return this.form;
	}
},VUI.Dialog);

})();</pre>
</body>
</html>
